package com.eduction.controller;

import com.eduction.resource.BaseController;
import org.apache.log4j.Logger;
import org.springframework.http.MediaType;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.sql.SQLException;
import java.util.Map;

@Controller
@RequestMapping("/materialReview")
public class MaterialReviewController extends BaseController {

    private static final Logger log = Logger.getLogger(ItemController.class);

    /**
     * 填报数据查看
     * @param request
     * @param map
     * @return
     * @throws SQLException
     */
    @RequestMapping(value = "/queryData" ,produces = MediaType.APPLICATION_JSON_VALUE+";charset=UTF-8", method= RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<String> querySysValue(HttpServletRequest request, @RequestBody Map<String ,String> map) {
        return null;
    }

    /**
     * 材料评审意见填写
     * @param request
     * @param map
     * @return
     * @throws SQLException
     */
    @RequestMapping(value = "/opinionWrite" ,produces = MediaType.APPLICATION_JSON_VALUE+";charset=UTF-8", method= RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<String> opinionWrite(HttpServletRequest request, @RequestBody Map<String ,String> map) {
        return null;
    }

    /**
     * 专家分工（专家组长特有）
     * @param request
     * @param map
     * @return
     * @throws SQLException
     */
    @RequestMapping(value = "/division" ,produces = MediaType.APPLICATION_JSON_VALUE+";charset=UTF-8", method= RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<String> division(HttpServletRequest request, @RequestBody Map<String ,String> map) {
        return null;
    }

    /**
     * 评审意见汇总（专家组长特有）
     * @param request
     * @param map
     * @return
     * @throws SQLException
     */
    @RequestMapping(value = "/collect" ,produces = MediaType.APPLICATION_JSON_VALUE+";charset=UTF-8", method= RequestMethod.POST)
    @ResponseBody
    public ResponseEntity<String> collect(HttpServletRequest request, @RequestBody Map<String ,String> map) {
        return null;
    }

}
